package com.spring.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;

/**
 * @author:liuwei
 * @creatdate:2021-07-12-16:16
 */
public class People {
	@Autowired
	private Cat cat;
	@Autowired
	private Dog dog;
	private String name;

	public Cat getCat() {
		return cat;
	}

	public void setCat(Cat cat) {
		this.cat = cat;
	}

	public Dog getDog() {
		return dog;
	}

	public void setDog(Dog dog) {
		this.dog = dog;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "People{" +
				"cat=" + cat +
				", dog=" + dog +
				", name='" + name + '\'' +
				'}';
	}
}
